﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Slwy.FrameCore.Model
{
    public class MSlwyResult
    {
        /// <summary>
        /// 返回结果Code
        /// 1 = 正常
        /// 0 = 程序异常
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 返回结果描述
        /// </summary>
        public string Message { get; set; } = "请求成功。";

        /// <summary>
        /// 请求结果数据
        /// </summary>
        public object Data { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public string Version
        {
            get
            {
                return "1.0";
                //try
                //{
                //    // return new ConfigurHalder().GetAppOptions<MServiceInfo>("ServiceInfo").Version;
                //}
                //catch
                //{
                //    return "x.x";
                //}
            }
        }
    }
}
